<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Entering user data</title>
</head>
<body>
<h1>Entering user data</h1>
<?php 

?>
<?php echo form_open('paging');?>
<table border="1">
<tr>
	<td>First Name</td>
	<td>
		<input type="text" name="key_one" value="<?= (isset($key_one)&& !empty($key_one))?$key_one:''?>" size="20" />
	</td>
	<td>Last Name </td>
	<td>
		<input type="text" name="key_two" value="" size="50" />
	</td>
	<td>
		<input type="submit" name="submit" value="Send Data" />
	</td>
</tr>
</table>
<p>Email <input type="text" name="key_three" value="" size="50" /></p>
</form>

<?php if (isset($results) && !empty($results)) {?>
<table border="1">
	<?php foreach($results as $result):++$offset?>
	<tr>
		<td><?=$offset?></td>
		<td><?=$result['key_one'] ?></td>
		<td><?=$result['key_two'] ?></td>
		<td><?=$result['key_three'] ?></td>
	
	</tr>
	<?php endforeach;?>
	<tfoot>
		<tr>
			<td colspan="4"><?php echo $page_links;?></td>
		</tr>
	</tfoot>

</table>
<?php }?>
</body>

</html>